package younian.entity;

/**
 * 分页信息类
 * 
 * @author
 *
 */
public class PageBean {

	private int page; // 当前页数
	private int pageSize; // 每页数据数
	private int start; // 当前页起始数据数

	public PageBean(int page, int pageSize) {
		super();
		this.page = page;
		this.pageSize = pageSize;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getStart() {
		return (page - 1) * pageSize;
	}

	@Override
	public String toString() {
		return "PageBean [page=" + page + ", pageSize=" + pageSize + ", start=" + start + "]";
	}

}
